package com.tsingtree.gen.core.util;

/**
 * 字符串拼接工具类
 *
 * @author jagger
 */
public class VeStringUtil {

    public static boolean contain(String str, String key) {
        if (str == null) {
            throw new NullPointerException("Error: contain(null)");
        } else {
            return str.indexOf(key) != -1;
        }
    }

    public static boolean startWith(String str, String key) {
        if (str == null) {
            throw new NullPointerException("Error:startWith(null)");
        } else {
            return str.startsWith(key);
        }
    }

}
